﻿using System;
using System.Collections.Generic;
namespace Infrastructure.Pipeline;
public static class CacheKey
{
    public static string GetCacheKey(this string cacheKey, string proxy)
    {
        return $"{proxy}:{cacheKey}";
    }

    public static IEnumerable<string> GetCacheTags(this IEnumerable<string> tags, string proxy)
    {
        return tags.Select(tag => $"{proxy}:{(tag ?? "")}");
    }
}
